Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(wakuv2): logout / login delay #4336

Merged
merged 4 commits into from
Nov 17, 2023
Merged

fix(wakuv2): logout / login delay #4336

merged 4 commits into from
Nov 17, 2023

Conversation

richard-ramos
Copy link
Member

Fixes the issue described in status-im/status-mobile#17899 (comment) as well as reusing the IDService from go-waku instead of having status-go create its own, and also an error with a reference to a loop variable

@richard-ramos richard-ramos marked this pull request as draft November 17, 2023 13:38
@status-im-auto
Copy link
Member

status-im-auto commented Nov 17, 2023

Jenkins Builds

Click to see older builds (4)
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ aba80e8 #1 2023-11-17 13:42:59 ~5 min ios 📦zip
✔️ aba80e8 #1 2023-11-17 13:43:35 ~5 min linux 📦zip
✖️ aba80e8 #1 2023-11-17 13:46:08 ~8 min tests 📄log
✔️ aba80e8 #1 2023-11-17 13:46:36 ~8 min android 📦aar
Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 76f55bc #2 2023-11-17 13:55:43 ~4 min ios 📦zip
✔️ 76f55bc #2 2023-11-17 13:57:43 ~6 min android 📦aar
✔️ 76f55bc #2 2023-11-17 13:58:54 ~8 min linux 📦zip
✖️ 76f55bc #2 2023-11-17 14:13:56 ~23 min tests 📄log
✖️ 76f55bc #3 2023-11-17 14:30:21 ~11 min tests 📄log
✔️ 4f1c4e4 #3 2023-11-17 14:36:06 ~3 min ios 📦zip
✔️ 4f1c4e4 #3 2023-11-17 14:43:40 ~11 min android 📦aar
✔️ 4f1c4e4 #3 2023-11-17 14:45:44 ~13 min linux 📦zip
✖️ 4f1c4e4 #4 2023-11-17 14:53:19 ~21 min tests 📄log
✔️ 4f1c4e4 #5 2023-11-17 15:35:05 ~31 min tests 📄log

@richard-ramos richard-ramos marked this pull request as ready for review November 17, 2023 14:11
@richard-ramos richard-ramos requested a review from vitvly November 17, 2023 14:11
@richard-ramos richard-ramos changed the title fix(wakuv2): race conditions fix(wakuv2): logout / login delay Nov 17, 2023
@@ -168,7 +168,8 @@ func (f *FiltersManager) InitCommunityFilters(communityFiltersToInitialize []Com
// TODO: requests to join / cancels are currently being sent into the default waku topic.
// They must be sent into an specific non protected shard
for _, pubsubTopic := range topics {
identityStr := PublicKeyToStr(&cf.PrivKey.PublicKey)
pk := &cf.PrivKey.PublicKey
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So here, given that we're taking an address of loop variable cf, this pk param would always point to the same var, correct?

Copy link
Member Author

@richard-ramos richard-ramos Nov 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah!
Earlier I updated golangci-lint on my machine and when I executed make lint saw a warning!

@richard-ramos richard-ramos merged commit d2578bf into develop Nov 17, 2023
6 of 7 checks passed
@richard-ramos richard-ramos deleted the fix/ctx-background branch November 17, 2023 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants